<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
    />
    <meta name="description" content="vue3,vue,vant3,vant,typescript" />
    <!-- <meta name="apple-mobile-web-app-capable" content="yes" /> -->
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title><%= htmlWebpackPlugin.options.title %></title>
    <!-- 使用CDN的CSS文件 -->
    <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
    <link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" />
    <% } %>
    <link id="iconClassUrl" rel="preload" href="" />
    <!-- 加载config配置文件，测试type=module + import默认defer,会晚于app挂载文件注入 -->
    <script>
      document.write(
        "<script type='text/javascript' src='/config.js?v=" + Date.now() + "'><\/script>",
      );
    </script>
  </head>
  <body>
    <noscript>
      <strong
        >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without
        JavaScript enabled. Please enable it to continue.</strong
      >
    </noscript>
    <div id="app"></div>
    <script>
      const { iconClassUrl, iconSymbolUrl } = window.$config;
      iconClassUrl && (document.getElementById('iconClassUrl').href = iconClassUrl);
      iconSymbolUrl &&
        document.write("<script type='text/javascript' src='" + iconSymbolUrl + "'><\/script>");
    </script>
    <!-- 使用CDN的JS文件 -->
    <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
    <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
    <% } %>
    <!-- built files will be auto injected -->
  </body>
</html>
